package cc.md888.app.application.activatecode;

import org.springframework.stereotype.Component;

import java.util.Properties;

@Component
public class LarkMailServeConnectionPoolMail extends AbstractMailServerConnectionPool {

    @Override
    public Properties getMailServer(String email) {

        Properties properties = new Properties();
        properties.put("mail.debug", "true");
        properties.put("mail.debug.auth", "true");
        properties.put("mail.store.protocol", "smtp");
        properties.put("mail.smtp.host", "smtp.larksuite.com");
        properties.put("mail.smtp.port", "465");
        properties.put("mail.smtp.ssl.enable", "true");
        properties.put("mail.smtp.auth", "true");
        properties.put("mail.smtp.auth.mechanisms", "login");
        return properties;
    }
}
